home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c-part2 / 14485 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1015 b 

  1. Path: lrz-muenchen.de!news
  2. From: ua302aa@lrz-muenchen.de ()
  3. Newsgroups: comp.lang.c
  4. Subject: Re: Q: '\n' character
  5. Date: 15 Apr 1996 08:30:26 GMT
  6. Organization: Leibniz-Rechenzentrum, Muenchen (Germany)
  7. Distribution: world
  8. Message-ID: <4kt1f2$jjk@sparcserver.lrz-muenchen.de>
  9. References: <4kj66f$k0o@ren.cei.net> <1996Apr11.192937.25676@sq.com> <829396473snz@genesis.demon.co.uk> <4kpd2g$eeb@masala.cc.uh.edu> <317109ea.316698628@nntp.ix.netcom.com>
  10. NNTP-Posting-Host: sun2.lrz-muenchen.de
  11.  
  12. miker3@ix.netcom.com (Mike Rubenstein) writes:
  13. >> Ok, I've got a question at this point.  Is it really proper to say
  14. >> if (ptr)? 
  15.  
  16. Yes, it's "proper".
  17.  
  18. >Read some different books.
  19.  
  20. >    if (ptr)
  21. >      statement1
  22.  
  23. >executes statement1 if ptr compares equal to 0 (ISO 6.6.4), i.e., if
  24. >ptr == 0.
  25.  
  26. I'd say "if (ptr)" is aequivalent to "if ((ptr) != 0)", and "statement1"
  27. will be executed if "ptr" does not compare equal to 0
  28.  
  29. Kurt
  30. -- 
  31. | Kurt Watzka                             Phone : +49-89-2180-6254
  32. | watzka@stat.uni-muenchen.de
  33.